import request from '@/utils/request.js'

const state = {
	typeDetailList: []
}

const mutations = {
	SET_TYPEDETAILLIST(state, typeDetailList) {
		state.typeDetailList = typeDetailList
	}
} 

const actions = {
	async getTypeDetailList({commit}) {
		try{
			const result = await request('/getTypeDetail')
			commit('SET_TYPEDETAILLIST', result)
		}catch(e){
			console.log('请求获取typeDetail数据失败')
		}
	}
}

const getters = {
	
}


export default {
	namespaced: true,
	state,
	mutations,
	actions,
	getters
}

